package org.lilith.springbootplayground.model;
import java.sql.Timestamp;

public class Book {
    private Long id;
    private String title;
    private String author;
    private Timestamp displayTime;
    private Long pageviews;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Timestamp getDisplayTime() {
        return displayTime;
    }

    public void setDisplayTime(Timestamp displayTime) {
        this.displayTime = displayTime;
    }

    public Long getPageviews() {
        return pageviews;
    }

    public void setPageviews(Long pageviews) {
        this.pageviews = pageviews;
    }

    @Override
    public String toString() {
        return getId() + ","
                + getTitle() + ","
                + getAuthor() + ","
                + getDisplayTime() + ","
                + getPageviews();
    }
}
